<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{padding:0; margin:0;}
        ul{
            width:500px;
            margin: 50px auto;
        }
        ul li{
            float: left;
            list-style: none;
        
        }
        ul li a{
            color: #fff;
            text-align: center;
            text-decoration: none;
            width:100px; height:38px; background: red;
            display: block;
            line-height: 38px;
        }
        .menu{
            display: none;
            text-align: center;
            line-height: 28px;
        }
        li:hover .menu{
            display: block;
        }
        .menu p:hover{
            background: pink;
        }
    </style>
</head>
<body>
    <ul>
        <li><a href="#">遇见你真好</a>
            <div class="menu">
                <p>哪里都好</p>
                <p>你好</p>
                <p>我好</p>
                <p>大家好</p>
            </div>
        </li>
        <li><a href="#">遇见你真倒霉</a></li>
        <li><a href="#">遇见你很开心</a></li>
        <li><a href="#">告辞</a>
            <div class="menu">
                <p>再也不见</p>
                <p>走好不送</p>
                <p>好走不送</p>
                <p>一路走好</p>
            </div>
        </li>
        <li><a href="#">再见</a></li>
    </ul>


</body>
</html>